export interface ResponseData {
  code: number
  message: string
}

//全部任务概况接口返回的数据的ts类型
export interface ClassificationTreeResponseData extends ResponseData {
  data: ClassificationTreeNode[]
}

export interface ClassificationTreeNode {
  classificationCode: string
  classificationName: string
  classificationType: string
  parentCode: string
  department: null
  parentName: string
  isInstanced: null
}

//中类实例化情况接口返回的数据的ts类型
export interface MediumInstanceResponseData extends ResponseData {
  data: MediumInstanceInfo[]
}

export interface MediumInstanceInfo {
  parentCode: string
  totalCount: number
  instancedCount: number
}

//小类实例化情况接口返回的数据的ts类型
export interface SmallInstanceResponseData extends ResponseData {
  // data: SmallInstanceInfo[]
  data: {
    total: number
    list: SmallInstanceInfo[]
    pageNum: number
    pageSize: number
    size: number
    startRow: number
    endRow: number
    pages: number
    prePage: number
    nextPage: number
    isFirstPage: boolean
    isLastPage: boolean
    hasPreviousPage: boolean
    hasNextPage: boolean
    navigatePages: number
    navigatepageNums: number[]
    navigateFirstPage: number
    navigateLastPage: number
  }
}

export interface SmallInstanceInfo {
  classificationCode: string
  classificationName: string
  classificationType: string
  parentCode: string
  department: null | string
  parentName: string
  isInstanced: null | string
}
